<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="MSThemeCompatible" content="no" />
<title>区域操作</title>
<link href="_{$adminbase}styles/common.css" rel="stylesheet" type="text/css" />
<body>
<div id="main">
<div class="xs_tl">
<div class="l"></div>
<div class="r"></div>
<div class="hackbox"></div>
</div>
<div>
</div>
<div class="boxer">
<div id="OP_ListMaster">
<div class="header_1">区域操作</div>
<p><form action='admin.php?action=district-add' method='post'><input type='text' name='name' ><input type='submit' value='Yes'></form></p>
<div class="line_1"></div>
_{section name=district loop=$district_list}
<table width="95%" border="0" align="center" class="txt">
  <tr>
    <td width="5%">_{$district_list[district].id}</td>
	<td width="50%">_{$district_list[district].name}</td>
	<td width="15%" id='dis__{$district_list[district].id}' style='display:none'><form action="admin.php?action=district-edit" method="post"><input type='text' value='' name='name' size='35'><input name="id" type='hidden' value='_{$district_list[district].id}'><input type='submit' value='Yes'></form></td>
	<td width="5%"><a href="javascript:showdiv('dis__{$district_list[district].id}');"><img src='_{$adminbase}images/edit.gif' border='0'></a></td>
	<td width="5%"><a href='?action=district-del&id=_{$district_list[district].id}'><img src='_{$adminbase}images/del.png' border='0'></a></td>
  </tr>
</table>
_{/section}
<div align="center"><tr><td>_{$district_page}&nbsp;</div></div>
</div>
<div class="xs_bl">
<div class="l"></div>
<div class="r"></div>
<div class="hackbox"></div>
</div>
</div>
</body>
<script>
function showdiv(id){
	document.getElementById(id).style.display='';
}
</script>

</html>